﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LMHTX.Modules.DIRECTORY.COOPERATIVE.Components
{
    public partial class History
    {
        public static History SelectBy_CooperativeID_Year(int cooperativeID, int year)
        {
            IList<History> list = SelectCollectionBy_CooperativeID(cooperativeID);
            if (list.Count > 0)
            {
                return list.FirstOrDefault(x => x.Year == year);
            }
            return null;
        }
    }
}